<template>
  <form action="" ref="form">
    <!-- <input type="" name="text" id="" placeholder="用户名" ref="tex" />
    <input type="" name="password" id="" placeholder="密码" ref="pswd" /> -->
    <input type="text" name="text" placeholder="用户名" v-model="form.text" />
    <input
      type="text"
      name="password"
      placeholder="密码"
      v-model="form.password"
    />
  </form>
</template>

<script>
export default {
  components: {},
  // props: ['value'],
  data() {
    return {
      form: {
        text: '',
        password: '',
      },
    }
  },
  methods: {
    zidingyihanshu() {
      console.log(this.form)
      this.form = {
        text: '',
        password: '',
      }
    },
  },
}
</script>

<style scoped></style>
